package com.example.graduate.Service;

import com.example.graduate.Bean.Card;
import com.example.graduate.Bean.CardsCard;
import com.example.graduate.Bean.CardsCollect;
import com.example.graduate.Bean.Client;

import java.util.List;

public interface CardsCollectService {

    //通过卡片集合的id，找到该卡片集合的所有卡片返回
    CardsCollect selectCards(Integer id);

    Card getCardById(Integer id);

    //通过用户id找到该用户当下拥有的卡片集合
    List<CardsCollect> selectCardsCollect(Integer id);

    void inser(CardsCollect cardsCollect);

    void insertCard(Card  card);

    int updateCardBy(Card card);
    void updateLearnCards(Client users);

    int deleteCardsById(Integer id,Integer userId);

    int deleteCardById(Integer id);

    int insertCardsCard(CardsCard cardsCard);

    List<CardsCollect> selectAllCards();


}
